home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: phcoms4.seri.philips.nl!misf1!Pvestjen
- From: Pvestjen@ms.philips.nl (Patrick Vestjens)
- Subject: Re: PUBLIC / PRIVATE
- Message-ID: <1996Apr18.085541.21233@ms.philips.nl>
- Sender: news@ms.philips.nl
- Organization: Philips Medical Systems, Best
- X-Newsreader: TIN [version 1.2 PL2]
- References: <4l3k8d$hkp@mulga.cs.mu.OZ.AU>
- Date: Thu, 18 Apr 1996 08:55:41 GMT
-
- Falchion (simc@mundil.cs.mu.OZ.AU) wrote:
- : I'm analysing some C source code and I've
- : come across PUBLIC and PRIVATE keywords
-
- : eg PUBLIC char * app_name = "Lynx";
-
- : PRIVATE void HTFWriter_write ARGS3(HTSteam, *, me, CONST char*,
- : s, int, l) { fwrite(s, 1, l, me->fp) }
-
-
- : I though C didn't have PUBLIC or PRIVATE ?
- : It definitely doesn't look like C++ source code - it looks like
- : C code with PUBLIC and PRIVATE keywords scattered everywhere.
-
- Aren't those PUBLIC and PRIVATE 'keywords' in fact macro's?
-
- : 2nd question:
- : PRIVATE void HTFWriter_write ARGS3(HTSteam, *, me, CONST char*,
- : s, int, l) { fwrite(s, 1, l, me->fp) }
-
- : What is the ARGS3 ?
- : I'm accustomed to
- : return_type function_name(args) { ... }
-
- Same here, could the ARGS3 be a macro? I've seen code using this kind of
- structure before, for example using a macro named PROTO. I think it is
- used to abstract from the prototype notation.
-
- Regards, Patrick.
- --
- Patrick Vestjens Email: Pvestjen@best.ms.philips.com
- Philips Medical Systems Postbus 10,000 Phone: 31 40 2762767
- ICS Department 5680 DA Best Fax: 31 40 2763393
- Building QP-1.124 The Netherlands
-